package com.rundow.common.base.model;

import com.rundow.common.base.valid.Insert;
import com.rundow.common.base.valid.Update;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class PointDevice implements Serializable {
    private static final long serialVersionUID = 1L;
    @NotNull(message = "point id can't be empty", groups = {Insert.class, Update.class})
    private String pointId;
    @NotNull(message = "device id can't be empty", groups = {Insert.class, Update.class})
    private String deviceId;
}
